package com.main.organizationandplatformmanagement.domain.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.main.common.base.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.autoconfigure.domain.EntityScan;

/**
 * @author Lin 2025/03/13
 * @version 1.0.0
 * 组织结构模型实体
 */
@TableName("organization_model_atoms")
@EqualsAndHashCode(callSuper = true)
@Data
@EntityScan
public class OrganizationModelAtoms extends BaseEntity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "code")
    private String code;
    @TableField(value = "name")
    private String name;
    @TableField(value = "type_id")
    private Long typeId;

    @TableField(exist = false)
    private OrganizationModelAtomType organizationModelAtomType;
}

